package com.corpgovernment.supplier.constant;

public class OperationType {

    public static final String UN_COMMIT = "unCommit";//暂提交
    public static final String COMMIT = "commit";//提交
    public static final String NEW_ADD = "newAdd";//新增记录
    public static final String MODIFY = "modify";//修改
    public static final String CHANGE_ADD = "changeAdd";//变更提交

    public static boolean contain(String val) {
        if (NEW_ADD.equals(val) || MODIFY.equals(val) || CHANGE_ADD.equals(val)) {
            return true;
        }
        return false;
    }

    public static String getName(String val) {
        if (NEW_ADD.equals(val)) {
            return "新增";
        }
        if (MODIFY.equals(val)) {
            return "修改";
        }
        if (CHANGE_ADD.equals(val)) {
            return "变更提交";
        }
        return null;
    }
}
